package org.csmzxy.class2333;

public class Work01 {
    public static void main(String[] args)  {
        int[] arr ={1,3,5,7};
        int max = arr[0];
        for(int num:arr){
            if (num >max){
                max =num;
            }
        }
        System.out.println("数组中的最大值是:"+max);
    }
}
